package com.ss.android.article.common.e;

import android.text.TextUtils;

import com.bytedance.common.utility.Logger;
import com.ss.android.article.base.feature.detail2.DetailIntentCreator;
import com.ss.android.common.util.Singleton;

public class a implements c {
    private static final String a = a.class.getSimpleName();
    private static Singleton<a> b = new Singleton<a>() {

        public final a create() {
            return new a();
        }
    };
    private c c;

    public a() {

    }

    public static a a() {
        return (com.ss.android.article.common.e.a) b.get();
    }

    public final void a(boolean arg2) {
        this.c();
        if (this.c != null) {
            this.c.a(arg2);
        }
    }

    public final DetailIntentCreator b() {
        this.c();
        DetailIntentCreator v0 = this.c != null ? this.c.b() : null;
        return v0;
    }

    private void c() {
        if (this.c == null && !TextUtils.isEmpty("com.ss.android.e.a")) {
            try {
                Object v0_1 = Class.forName("com.ss.android.e.a").newInstance();
                if (!(v0_1 instanceof c)) {
                    return;
                }
                this.c = ((c) v0_1);
            } catch (Throwable throwable) {
                Logger.d("module", "load " + a + " exception: " + throwable);
            }
        }
    }
}

